import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const routes = [
    {
        path: '/',
        name: 'index',
        component: () => import('@/components/Index')
    },
    {
        path: '/task/list/:is_newcomer',
        name: 'task_list',
        component: () => import('@/components/tasks/List')
    },
    {
        path: '/task/detail/:id',
        name: 'task_detail',
        component: () => import('@/components/tasks/Detail')
    },
    {
        path: '/task/my_tasks',
        name: 'my_tasks',
        component: () => import('@/components/tasks/MyTasks')
    },
    {
        path: '/task/my_task_list/:status',
        name: 'MyTaskList',
        component: () => import('@/components/tasks/MyTasksList')
    },
    {
        path: '/task/message',
        name: 'message',
        component: () => import('@/components/tasks/Message')
    },
    {
        path: '/task/privilege',
        name: 'privilege',
        component: () => import('@/components/tasks/PrivilegeList')
    },
    {
        path: '/service',
        name: 'service',
        component: () => import('@/components/components/service')
    },
    {
        path: '/task/Myself',
        name: 'Myself',
        component: () => import('@/components/tasks/Myself')
    },
    {
        path: '/task/Myinformation',
        name: 'Myinformation',
        component: () => import('@/components/tasks/Myinformation')
    },
    {
        path: '/task/putMoney',
        name: 'putMoney',
        component: () => import('@/components/tasks/putMoney')
    },
    {
        path: '/task/Commission',
        name: 'Commission',
        component: () => import('@/components/tasks/Commission')
    },
    {
        path: '/task/Rankinglist',
        name: 'Rankinglist',
        component: () => import('@/components/tasks/Rankinglist')
    },
    {
        path: '/task/bindingTao',
        name: 'bindingTao',
        component: () => import('@/components/tasks/bindingTao')
    },
    {
        path: '/task/bindingTab',
        name: 'bindingTab',
        component: () => import('@/components/tasks/BindingTab')
    },
    {
        path: '/task/detailsTao',
        name: 'detailsTao',
        component: () => import('@/components/tasks/detailsTao')
    },
    {
        path: '/task/Reviseinformation',
        name: 'Reviseinformation',
        component: () => import('@/components/tasks/Reviseinformation')
    },
    {
        path: '/task/Apprentice',
        name: 'Apprentice',
        component: () => import('@/components/tasks/Apprentice')
    },
    {
        path: '/task/Login',
        name: 'Login',
        component: () => import('@/components/tasks/Login')
    },
    {
        path: '/task/Forget',
        name: 'Forget',
        component: () => import('@/components/tasks/Forget')
    },
    {
        path: '/task/reg',
        name: 'reg',
        component: () => import('@/components/tasks/reg')
    },
    {
        path: '/task/password',
        name: 'password',
        component: () => import('@/components/tasks/password')
    },
    {
        path: '/task/detailCustom/:id',
        name: 'task_detail_Custom',
        component: () => import('@/components/tasks/detailCustom')
    },
    {
        path: '/task/inviteList',
        name: 'inviteList',
        component: () => import('@/components/tasks/InviteList')
    }
]

const router = new Router({
    mode: 'hash',
    routes
})

export default router
